import com.demo.config.BeanConfig;
import com.demo.service.AccountService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @ClassName Demo
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/1 14:48
 * @Version 1.0
 **/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = BeanConfig.class)
public class Demo {
    @Autowired
    AccountService accountService;

    @Test
    public void  test() {
        accountService.transfer("james","Oneal",10.2);
    }
}
